package neuroBot.neuroAction;

import neuroPoker.poker.Enums.Actions;
import neuroPoker4.netze.tool.NetAction2;

public class Util {

	public static Actions toActions(NetAction2 action) {
		if (action.getAction() == NetAction2.fold)
			return Actions.fold;
		if (action.getAction() == NetAction2.checkCall)
			return Actions.checkCall;
		if (action.getAction() == NetAction2.raise)
			return Actions.raise;
		System.err.println("Util: to Actions(): could not transform action: "
				+ action);
		return null;
	}

}
